package top.hjcwzx.wrench.service;

import org.springframework.stereotype.Component;
import top.hjcwzx.wrench.mqtt.event.MqttMessageEvent;
import top.hjcwzx.wrench.mqtt.service.listener.AbstractMqttMessageListener;

/**
 *
 * <p><b>类名：</b> MsgListener</p>
 * <p><b>描述：</b> 消费</p>
 * <p><b>创建时间：</b> 2025-06-17 16:02 </p>
 *
 * @author 胡锦程
 */
@Component
public class MsgListener extends AbstractMqttMessageListener {
    @Override
    public void doHandler(MqttMessageEvent event) {
        System.out.println(event.getMessage());
        System.out.println(event.getTopic());
    }
}
